• 在github上新建一个以git账号为前缀的仓库,如shineniefei.github.io
  • 在本地工作目录,使用git克隆git clone git@github.com:shineniefei/shineniefei.github.io.git 把代码下到本地
  • 安装node
  • 安装 hexo,npm install -g hexo-cli
  • 初始化 hexo init shineniefei.github.io
  • 进入目录,cd shineniefei.github.io
  • 使用themes,git clone https://github.com/tufu9441/maupassant-hexo.git themes/maupassant
  • npm install hexo-renderer-pug --save
  • npm install hexo-renderer-sass --save
  • npm install hexo-deployer-git --save
  • 在_config.yml配置使用themes, maupassant

    (rm -rf themes/maupassant
    git rm -r –cached themes/maupassant
    git add themes/maupassant)

  • 在source/_posts里写md文章

  • 使用 hexo clean && hexo g && hexo d 更新到master